package com.haze.lt_file_api.web.model;

import java.util.Date;

public class FileInfo {

    private String fileName;
    private long lastModified; // 原始时间戳
    private long size;
    private String url;
    private String formattedLastModified; // 格式化后的时间

    // 构造函数
    public FileInfo(String fileName, long lastModified, long size, String url) {
        this.fileName = fileName;
        this.lastModified = lastModified;
        this.size = size;
        this.url = url;
    }

    // Getters and Setters
    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public long getLastModified() {
        return lastModified;
    }

    public void setLastModified(long lastModified) {
        this.lastModified = lastModified;
    }

    public long getSize() {
        return size;
    }

    public void setSize(long size) {
        this.size = size;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getFormattedLastModified() {
        return formattedLastModified;
    }

    public void setFormattedLastModified(String formattedLastModified) {
        this.formattedLastModified = formattedLastModified;
    }
}
